package com.hopes.bizz.risk.parkgis.vo;

import com.hopes.bizz.risk.common.constant.enums.RiskSysDictEnum;
import com.hopes.boss.admin.api.resolver.DictResolver;
import lombok.Data;

import java.io.Serializable;

/**
 * @author yumr
 * @ProjectName bizz
 * @Description 风险分析等级BO
 * @time 2023/11/13 14:09
 */
@Data
public class OrgLevelVO implements Serializable {

    private static final long serialVersionUID = -8573864283724059047L;

    /**
     * 企业
     */
    private Long orgId;

    /**
     * 统计数量
     */
    private Integer count;

    /**
     * 风险等级
     */
    private Integer riskLevel;

    public String getRiskLevelStr() {
        return DictResolver.getItemLabelByValue(RiskSysDictEnum.risk_level, this.getRiskLevel());
    }
}
